<?php /* Smarty version 2.6.14, created on 2010-02-02 12:09:35
         compiled from multipleTable.html */ ?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>查询结果</title>
		<style type="text/css">
<!--
body {
	background-image: url(../img/back.gif);
}
-->
</style>
		<style>
td{
	border-right:1px solid #cbdced;
	border-bottom: 1px solid #cbdced;
	padding:3px;
}

th{
	background-color:#cbdced;
	padding:3px;
	border-right:1px solid #fff;
	border-bottom:1px solid #fff;
}
table{
	clear: both;
	border-top: 1px solid #cbdced;
	border-left: 1px solid #cbdced;
}
body{
	font-size:14px;
}
.green{
	color:green;
}

.red{
	color:red;
}

.redBgd{
	background-color: red;
	color: white;
}

.blue{
	color:blue;
}

.sum th{
	background-color:#8A95A1;
	color:white;
}
.exportBtn{
	margin-right:30px;
	margin-top:2px;
	margin-bottom:2px;
	float:right;
	display:block;
	padding:1px;
}

span[class=exportBtn]:hover{
	background-color:#8A95A1;
	color:white;
}
		</style>

	<script type="text/javascript" language="Javascript">
	function deleteConfirm(){
		return window.confirm('你确实要删除这一项吗？');
	}
	</script>
	</head>
	<body>

	<?php if ($this->_tpl_vars['main_certificationNumber'] || $this->_tpl_vars['ruku_certificationNumber'] || $this->_tpl_vars['chuku_certificationNumber']): ?>
		<span class="exportBtn">
			<a href="exportMultipleTable.php?keyname=<?php echo $this->_tpl_vars['keyname']; ?>
" title="点击进行导出结果">导出表格</a>
		</span>
	<?php else: ?>
		抱歉没有符合你搜索的条目
	<?php endif; ?>


	<table cellpadding="0" cellspacing="0">
	<?php if ($this->_tpl_vars['main_certificationNumber']): ?>
		<tr>
			<th style="width:14em">产品质量证明书号</th>
			<th style="width:6em">发车证书号</th>
			<th style="width:5em">产品质量证明书编号</th>
			<th style="width:5em">批次</th>
			<th style="width:6em">生产厂家</th>
			<th style="width:6em">船级</th>
			<th style="width:6em">材质</th>
			<th style="width:10em">厚</th>
			<th style="width:5em">宽</th>
			<th style="width:6em">长</th>
			<th style="width:6em">数量</th>
			<th style="width:6em">单重</th>
			<th style="width:6em">重量</th>
			<th style="width:6em">订单号</th>
			<th style="width:6em">订单子项号</th>
			<th style="width:6em">受订单价</th>
			<th style="width:6em">物料号</th>
			<th style="width:6em">发货批次</th>
			<th style="width:6em">批号</th>
			<th style="width:6em">购单号</th>
			<th style="width:6em">发货时间</th>
			<th style="width:6em">合同月份</th>
			<th style="width:10em">车号</th>
			<th style="width:10em">销售产家</th>
			<th style="width:10em">备注</th>
			<th style="width:6em">上传文件名</th>
			<th style="width:6em">上传时间</th>
			<th style="width:5em">编辑</th>
			<th style="width:5em">删除</th>
		</tr>
		<?php unset($this->_sections['main']);
$this->_sections['main']['name'] = 'main';
$this->_sections['main']['loop'] = is_array($_loop=$this->_tpl_vars['main_certificationNumber']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['main']['show'] = true;
$this->_sections['main']['max'] = $this->_sections['main']['loop'];
$this->_sections['main']['step'] = 1;
$this->_sections['main']['start'] = $this->_sections['main']['step'] > 0 ? 0 : $this->_sections['main']['loop']-1;
if ($this->_sections['main']['show']) {
    $this->_sections['main']['total'] = $this->_sections['main']['loop'];
    if ($this->_sections['main']['total'] == 0)
        $this->_sections['main']['show'] = false;
} else
    $this->_sections['main']['total'] = 0;
if ($this->_sections['main']['show']):

            for ($this->_sections['main']['index'] = $this->_sections['main']['start'], $this->_sections['main']['iteration'] = 1;
                 $this->_sections['main']['iteration'] <= $this->_sections['main']['total'];
                 $this->_sections['main']['index'] += $this->_sections['main']['step'], $this->_sections['main']['iteration']++):
$this->_sections['main']['rownum'] = $this->_sections['main']['iteration'];
$this->_sections['main']['index_prev'] = $this->_sections['main']['index'] - $this->_sections['main']['step'];
$this->_sections['main']['index_next'] = $this->_sections['main']['index'] + $this->_sections['main']['step'];
$this->_sections['main']['first']      = ($this->_sections['main']['iteration'] == 1);
$this->_sections['main']['last']       = ($this->_sections['main']['iteration'] == $this->_sections['main']['total']);
?>
		<tr>
			<td><?php echo $this->_tpl_vars['main_certificationNumber'][$this->_sections['main']['index']]; ?>
</td>
			<td><?php echo $this->_tpl_vars['main_facheNumber'][$this->_sections['main']['index']]; ?>
</td>
			<td><a href="../img/<?php echo $this->_tpl_vars['main_certificationCodification'][$this->_sections['main']['index']]; ?>
.tif"><?php echo $this->_tpl_vars['main_certificationCodification'][$this->_sections['main']['index']]; ?>
</a></td>
			<td><?php echo $this->_tpl_vars['main_sequenceNumber'][$this->_sections['main']['index']]; ?>
</td>
			<td><?php echo $this->_tpl_vars['main_manufactory'][$this->_sections['main']['index']]; ?>
</td>
			<td><?php echo $this->_tpl_vars['main_authenticationMark'][$this->_sections['main']['index']]; ?>
</td>
			<td><?php echo $this->_tpl_vars['main_steelNumber'][$this->_sections['main']['index']]; ?>
</td>
			<td><?php echo $this->_tpl_vars['main_size1'][$this->_sections['main']['index']]; ?>
</td>
			<td><?php echo $this->_tpl_vars['main_size2'][$this->_sections['main']['index']]; ?>
</td>
			<td><?php echo $this->_tpl_vars['main_size3'][$this->_sections['main']['index']]; ?>
</td>
			<td><?php echo $this->_tpl_vars['main_count'][$this->_sections['main']['index']]; ?>
</td>
			<td><?php echo $this->_tpl_vars['main_unitWeight'][$this->_sections['main']['index']]; ?>
</td>
			<td><?php echo $this->_tpl_vars['main_weight'][$this->_sections['main']['index']]; ?>
</td>
			<td><?php echo $this->_tpl_vars['main_orderNumber'][$this->_sections['main']['index']]; ?>
</td>
			<td><?php echo $this->_tpl_vars['main_orderSubitemNumber'][$this->_sections['main']['index']]; ?>
</td>
			<td><?php echo $this->_tpl_vars['main_unitPrice'][$this->_sections['main']['index']]; ?>
</td>
			<td><?php echo $this->_tpl_vars['main_materialNumber'][$this->_sections['main']['index']]; ?>
</td>
			<td><?php echo $this->_tpl_vars['main_consignmentBatch'][$this->_sections['main']['index']]; ?>
</td>
			<td><?php echo $this->_tpl_vars['main_sampleBatch'][$this->_sections['main']['index']]; ?>
</td>
			<td><?php echo $this->_tpl_vars['main_purchaseNumber'][$this->_sections['main']['index']]; ?>
</td>
			<td><?php echo $this->_tpl_vars['main_shipmentDate'][$this->_sections['main']['index']]; ?>
</td>
			<td><?php echo $this->_tpl_vars['main_month'][$this->_sections['main']['index']]; ?>
</td>
			<td><?php echo $this->_tpl_vars['main_vehicleNumber'][$this->_sections['main']['index']]; ?>
</td>
			<td><?php echo $this->_tpl_vars['main_consignee'][$this->_sections['main']['index']]; ?>
</td>
			<td><?php echo $this->_tpl_vars['main_remark'][$this->_sections['main']['index']]; ?>
</td>
			<td><?php echo $this->_tpl_vars['main_filename'][$this->_sections['main']['index']]; ?>
</td>
			<td><?php echo $this->_tpl_vars['main_uploadTime'][$this->_sections['main']['index']]; ?>
</td>
			<td><a href="rowEdit.php?type=main&id=<?php echo $this->_tpl_vars['main_id'][$this->_sections['main']['index']]; ?>
" title="点击进入编辑页面" target="_blank" >编辑</a></td>
			<td><form action="rowDelete.php" method="POST" onsubmit="return deleteConfirm()">
				<input type="hidden" name="type" value="main" />
				<input type="hidden" name="id" value="<?php echo $this->_tpl_vars['main_id'][$this->_sections['main']['index']]; ?>
" />
				<input type="submit" value="删除" title="点击删除这一行" />
				</form>
			</td>
		</tr>
		<?php endfor; endif; ?>
		<tr class="sum">
			<th>小结：</th>
			<th colspan="3">总数量</th>
			<td><?php echo $this->_tpl_vars['planSumCount']; ?>
</td>
			<th colspan="3">总重量</th>
			<td colspan="2"><?php echo $this->_tpl_vars['planSumWeight']; ?>
</td>
		</tr>
	<?php endif; ?>

	<?php if ($this->_tpl_vars['ruku_certificationNumber']): ?>
		<tr>
			<th>产品质量证明书号</th>
			<th>发车证书号</th>
			<th>产品质量证书编号</th>
			<th>批次</th>
			<th>生产厂家</th>
			<th>船级</th>
			<th>材质</th>
			<th>厚</th>
			<th>宽</th>
			<th>长</th>
			<th>数量</th>
			<th>单重</th>
			<th>重量</th>
			<th>订单号</th>
			<th>订单子项号</th>
			<th>受订单价</th>
			<th>物料号</th>
			<th>发货批次</th>
			<th>批号</th>
			<th>购单号</th>
			<th>入库日期</th>
			<th>合同月份</th>
			<th>车号</th>
			<th>销售产家</th>
			<th>备注</th>
			<th>上传文件名</th>
			<th>上传时间</th>
			<th>编辑</th>
			<th>删除</th>
		</tr>
		<?php unset($this->_sections['ruku']);
$this->_sections['ruku']['name'] = 'ruku';
$this->_sections['ruku']['loop'] = is_array($_loop=$this->_tpl_vars['ruku_certificationNumber']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['ruku']['show'] = true;
$this->_sections['ruku']['max'] = $this->_sections['ruku']['loop'];
$this->_sections['ruku']['step'] = 1;
$this->_sections['ruku']['start'] = $this->_sections['ruku']['step'] > 0 ? 0 : $this->_sections['ruku']['loop']-1;
if ($this->_sections['ruku']['show']) {
    $this->_sections['ruku']['total'] = $this->_sections['ruku']['loop'];
    if ($this->_sections['ruku']['total'] == 0)
        $this->_sections['ruku']['show'] = false;
} else
    $this->_sections['ruku']['total'] = 0;
if ($this->_sections['ruku']['show']):

            for ($this->_sections['ruku']['index'] = $this->_sections['ruku']['start'], $this->_sections['ruku']['iteration'] = 1;
                 $this->_sections['ruku']['iteration'] <= $this->_sections['ruku']['total'];
                 $this->_sections['ruku']['index'] += $this->_sections['ruku']['step'], $this->_sections['ruku']['iteration']++):
$this->_sections['ruku']['rownum'] = $this->_sections['ruku']['iteration'];
$this->_sections['ruku']['index_prev'] = $this->_sections['ruku']['index'] - $this->_sections['ruku']['step'];
$this->_sections['ruku']['index_next'] = $this->_sections['ruku']['index'] + $this->_sections['ruku']['step'];
$this->_sections['ruku']['first']      = ($this->_sections['ruku']['iteration'] == 1);
$this->_sections['ruku']['last']       = ($this->_sections['ruku']['iteration'] == $this->_sections['ruku']['total']);
?>
		<tr class="blue">
			<td><?php echo $this->_tpl_vars['ruku_certificationNumber'][$this->_sections['ruku']['index']]; ?>
</td>
			<td></td>
			<td><a href="../img/<?php echo $this->_tpl_vars['ruku_certificationCodification'][$this->_sections['ruku']['index']]; ?>
.tif"><?php echo $this->_tpl_vars['ruku_certificationCodification'][$this->_sections['ruku']['index']]; ?>
</a></td>
			<td></td>
			<td></td>
			<td></td>
			<td></td>
			<td></td>
			<td></td>
			<td></td>
			<td></td>
			<td></td>
			<td></td>
			<td></td>
			<td></td>
			<td></td>
			<td></td>
			<td><?php echo $this->_tpl_vars['ruku_consignmentBatch'][$this->_sections['ruku']['index']]; ?>
</td>
			<td></td>
			<td></td>
			<td><?php echo $this->_tpl_vars['ruku_rukuDate'][$this->_sections['ruku']['index']]; ?>
</td>
			<td></td>
			<td></td>
			<td></td>
			<td>备注一：<?php echo $this->_tpl_vars['ruku_remark1'][$this->_sections['ruku']['index']]; ?>
<br />
			备注二：<?php echo $this->_tpl_vars['ruku_remark2'][$this->_sections['ruku']['index']]; ?>
</td>
			<td><?php echo $this->_tpl_vars['ruku_filename'][$this->_sections['ruku']['index']]; ?>
</td>
			<td><?php echo $this->_tpl_vars['ruku_uploadTime'][$this->_sections['ruku']['index']]; ?>
</td>
			<td><a href="rowEdit.php?type=ruku&id=<?php echo $this->_tpl_vars['ruku_id'][$this->_sections['ruku']['index']]; ?>
" title="点击进入编辑页面" target="_blank">编辑</a></td>
			<td><form action="rowDelete.php" method="POST" onsubmit="return deleteConfirm()">
				<input type="hidden" name="type" value="ruku" />
				<input type="hidden" name="id" value="<?php echo $this->_tpl_vars['ruku_id'][$this->_sections['ruku']['index']]; ?>
" />
				<input type="submit" value="删除" title="点击删除这一行" />
				</form>
			</td>
		</tr>
		<?php endfor; endif; ?>
	<?php endif; ?>

	<?php if ($this->_tpl_vars['chuku_certificationNumber']): ?>
		<tr class="green">
			<th>产品质量证明书号</th>
			<th>发车证书号</th>
			<th>产品质量证书编号</th>
			<th>批次</th>
			<th>生产厂家</th>
			<th>船级</th>
			<th>材质</th>
			<th>厚</th>
			<th>宽</th>
			<th>长</th>
			<th>数量</th>
			<th>单重</th>
			<th>重量</th>
			<th>订单号</th>
			<th>订单子项号</th>
			<th>受订单价</th>
			<th>物料号</th>
			<th>发货批次</th>
			<th>批号</th>
			<th>购单号</th>
			<th>出库日期</th>
			<th>合同月份</th>
			<th>车号</th>
			<th>经手人</th>
			<th>备注</th>
			<th>上传文件名</th>
			<th>上传时间</th>
			<th>编辑</th>
			<th>删除</th>
		</tr>

		<?php unset($this->_sections['chuku']);
$this->_sections['chuku']['name'] = 'chuku';
$this->_sections['chuku']['loop'] = is_array($_loop=$this->_tpl_vars['chuku_certificationNumber']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['chuku']['show'] = true;
$this->_sections['chuku']['max'] = $this->_sections['chuku']['loop'];
$this->_sections['chuku']['step'] = 1;
$this->_sections['chuku']['start'] = $this->_sections['chuku']['step'] > 0 ? 0 : $this->_sections['chuku']['loop']-1;
if ($this->_sections['chuku']['show']) {
    $this->_sections['chuku']['total'] = $this->_sections['chuku']['loop'];
    if ($this->_sections['chuku']['total'] == 0)
        $this->_sections['chuku']['show'] = false;
} else
    $this->_sections['chuku']['total'] = 0;
if ($this->_sections['chuku']['show']):

            for ($this->_sections['chuku']['index'] = $this->_sections['chuku']['start'], $this->_sections['chuku']['iteration'] = 1;
                 $this->_sections['chuku']['iteration'] <= $this->_sections['chuku']['total'];
                 $this->_sections['chuku']['index'] += $this->_sections['chuku']['step'], $this->_sections['chuku']['iteration']++):
$this->_sections['chuku']['rownum'] = $this->_sections['chuku']['iteration'];
$this->_sections['chuku']['index_prev'] = $this->_sections['chuku']['index'] - $this->_sections['chuku']['step'];
$this->_sections['chuku']['index_next'] = $this->_sections['chuku']['index'] + $this->_sections['chuku']['step'];
$this->_sections['chuku']['first']      = ($this->_sections['chuku']['iteration'] == 1);
$this->_sections['chuku']['last']       = ($this->_sections['chuku']['iteration'] == $this->_sections['chuku']['total']);
?>
		<tr class="green">
			<td><?php echo $this->_tpl_vars['chuku_certificationNumber'][$this->_sections['chuku']['index']]; ?>
</td>
			<td></td>
			<td><a href="../img/<?php echo $this->_tpl_vars['chuku_certificationCodification'][$this->_sections['chuku']['index']]; ?>
.tif"><?php echo $this->_tpl_vars['chuku_certificationCodification'][$this->_sections['chuku']['index']]; ?>
</a></td>
			<td></td>
			<td></td>
			<td></td>
			<td></td>
			<td></td>
			<td></td>
			<td></td>
			<td></td>
			<td></td>
			<td></td>
			<td></td>
			<td></td>
			<td></td>
			<td></td>
			<td><?php echo $this->_tpl_vars['chuku_consignmentBatch'][$this->_sections['chuku']['index']]; ?>
</td>
			<td></td>
			<td></td>
			<td><?php echo $this->_tpl_vars['chuku_chukuDate'][$this->_sections['chuku']['index']]; ?>
</td>
			<td></td>
			<td></td>
			<td><?php echo $this->_tpl_vars['chuku_handler'][$this->_sections['chuku']['index']]; ?>
</td>
			<td>备注一：<?php echo $this->_tpl_vars['chuku_remark1'][$this->_sections['chuku']['index']]; ?>
<br />备注二：<?php echo $this->_tpl_vars['chuku_remark2'][$this->_sections['chuku']['index']]; ?>
</td>
			<td><?php echo $this->_tpl_vars['chuku_filename'][$this->_sections['chuku']['index']]; ?>
</td>
			<td><?php echo $this->_tpl_vars['chuku_uploadTime'][$this->_sections['chuku']['index']]; ?>
</td>
			<td><a href="rowEdit.php?type=chuku&id=<?php echo $this->_tpl_vars['chuku_id'][$this->_sections['chuku']['index']]; ?>
" title="点击进入编辑页面" target="_blank">编辑</a></td>
			<td><form action="rowDelete.php" method="POST" onsubmit="return deleteConfirm()">
				<input type="hidden" name="type" value="chuku" />
				<input type="hidden" name="id" value="<?php echo $this->_tpl_vars['chuku_id'][$this->_sections['chuku']['index']]; ?>
" />
				<input type="submit" value="删除" title="点击删除这一行" />
				</form>
			</td>
		</tr>
		<?php endfor; endif; ?>
	<?php endif; ?>

	</table>
	</body>
</html>